package com.luguangtao.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @类名: config
 * @作者: lgt
 * @创建时间: 2019-12-06 13:59
 * @描述:
 **/
@Component
@Data
@RefreshScope
@ConfigurationProperties(prefix = "com.lgt")
public class ConfigEntity {

    private String username;
    private String password;
}
